package club.lovety.springcloud.microservice;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.config.server.EnableConfigServer;

/**
 * @author smc
 *
 */
@EnableConfigServer
@SpringBootApplication
@EnableDiscoveryClient
public class ServerConfigApplication {

    private static final Logger log = LoggerFactory.getLogger(ServerConfigApplication.class);

    public static void main(String[] args) {

        log.info("开始启动配置中心");

        SpringApplication.run(ServerConfigApplication.class,args);

        log.info("启动配置中心成功");

    }

}
